//
//  BaseWaterFallLayout.h
//  LifeLine
//
//  Created by 庄波 on 2017/12/8.
//  Copyright © 2017年 亿橙科技. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol BaseWaterFallLayoutDelegate <NSObject>

/**
 *  获取item的高度
 *
 *  @param indexPath 下标
 *
 *  @return item高度
 */
- (CGFloat)heightForItemAtIndexPath:(NSIndexPath *)indexPath;

@end



@interface BaseWaterFallLayout : UICollectionViewFlowLayout
/**
 *  单元格尺寸
 */
@property (nonatomic, assign) CGSize itemSizes;

/**
 *  列数
 */
@property (nonatomic, assign) NSInteger numberOfColumns;

/**
 *  内边距
 */
@property (nonatomic, assign) UIEdgeInsets sectionInSet;

/**
 *  item间隔
 */
@property (nonatomic, assign) CGFloat ItemSpacing;

/**
 *  代理人属性
 */
@property (nonatomic, assign) id<BaseWaterFallLayoutDelegate>myDelegate;


@end
